package com.xiaowu.datajpa.constant;

public enum ResultEnum {
    UNOWN_ERR(-999, "未知错误"),
    COMMOND_ERR(-10, "一般性错误"),
    LOGIN_ERR(-2, "出错了，不正确的用户名或密码"),
    SUCCESS(1, "成功"),
    Qurey_ERR(-3, "查询错误");
    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public Integer getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
}
